package com.zysc.processflow.mapper;

import com.zysc.processflow.entity.Personrole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zysc.processflow.entity.Role;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 人员角色表 Mapper 接口
 * </p>
 *
 * @author 正元智慧城市_
 * @since 2022-11-23
 */
public interface PersonroleMapper extends BaseMapper<Personrole> {

    @Select("SELECT b.* FROM personrole a ,role b where a.roleid = b.rolekey and a.personid = #{personid}")
    List<Role> getroleListByPersonid(@Param("personid")String personid);
}
